<?php

//include '../core/core.php';
//
//CCore::Using('mime.message');
//
//$sRawMessage = 'MIME-Version: 1.0
//From: from@domain.com
//To: test@domain.com
//Content-Transfer-Encoding: Quoted-Printable
//
//555';
//
//$object = new CCoreMimeMessage();
//$object->ParseFromString($sRawMessage);
//
//rewind($object->Body);
//$h = $object->GetBinaryBodyStream();
//echo stream_get_contents($h);

$str = '<html><body>qqq<br /><br /><blockquote style=3D"border-left: solid 2px #0000=
00; margin-left: 5px; padding-left: 5px">---- Original Message ----<br /><b>=
From</b>: test@localhost<br /><b>To</b>: test@localhost<br /><b>Sent</b>: =D0=
=9F=D0=BD, =D0=98=D1=8E=D0=BB 19, 2010, 15:17 PM<br /><b>Subject</b>: 555<br=
 /><br /><img src=3D"cid:f9d6de48987b4632cbcf5d91d3ac3356"><br></blockquote>=
</body></html>';

echo quoted_printable_decode($str);
